Abstract: Real time packets should be transmitted immediately as many as possible. But the packets which transmitted from nodes which is far away from the base station should not delay. so in dynamic packet scheduling the real time and nonreal time packets are treated separately. Three priority queues are used, in which highest priority used for real time packets second priority for remote nonreal time packets and last one for local nonreal time packets. This reduces the end to end delay and average waiting time.

Keywords: Wireless sensor nodes, priority queue, delay.